<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SacNetUg.Master" Inherits="System.Web.Mvc.ViewPage<Contact>" %>
<%@ Import Namespace="SacNetUG.Models"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Contact
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        We welcome your comments and feedback about our website or any other topic. Please
        use the form below to correspond with us.
    </p>
    <p>
        Alternatively, you can sign up to be notified of our events on our <%: Html.ActionLink("Mailing List", "MailingList") %>.
    </p>
    <p>
        <%//TODO: make phone dynamic%>
        Phone: (916) 872-9380
    </p>
    <p>
        <%= Html.Encode(ViewData["Message"]) %></p>
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm())
       {%>
    <table>
        <tr>
            <td>
                <div class="editor-label">
                    <%= Html.LabelFor(model => model.Email)%>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%= Html.TextBoxFor(model => model.Email)%>
                    <%= Html.ValidationMessageFor(model => model.Email)%>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%= Html.LabelFor(model => model.Name)%>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%= Html.TextBoxFor(model => model.Name)%>
                    <%= Html.ValidationMessageFor(model => model.Name)%>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%= Html.LabelFor(model => model.Address)%>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%= Html.TextBoxFor(model => model.Address)%>
                    <%= Html.ValidationMessageFor(model => model.Address)%>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%= Html.LabelFor(model => model.City)%>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%= Html.TextBoxFor(model => model.City)%>
                    <%= Html.ValidationMessageFor(model => model.City)%>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%= Html.LabelFor(model => model.State)%>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%= Html.TextBoxFor(model => model.State)%>
                    <%= Html.ValidationMessageFor(model => model.State)%>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%= Html.LabelFor(model => model.Zip) %>
                    <%= Html.ValidationMessageFor(model => model.Zip)%>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%= Html.TextBoxFor(model => model.Zip)%>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%= Html.LabelFor(model => model.Country) %>
                    <%= Html.ValidationMessageFor(model => model.Country)%>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%= Html.TextBoxFor(model => model.Country)%>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%= Html.LabelFor(model => model.PhoneNumber) %>
                    <%= Html.ValidationMessageFor(model => model.PhoneNumber)%>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%= Html.TextBoxFor(model => model.PhoneNumber)%>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%= Html.LabelFor(model => model.Comments) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <!--tip:use the designer and properties window to get the desired html attributes and values-->
                    <%= Html.TextAreaFor(model => model.Comments, new { cols = "50", rows = "5" })%><br />
                    <%= Html.ValidationMessageFor(model => model.Comments)%>
                </div>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="submit" value="Submit" />
            </td>
        </tr>
    </table>
    <% } %>
</asp:Content>
